numa: __node_distance() should return u8
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Fri, 20 Mar 2015 16:32:25 +0000 (17:32 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 20 Mar 2015 16:32:25 +0000 (17:32 +0100)
commit59edde94818d153e1d2296d453f2d99fa2de6a0d
tree78868e6df187d3cc1d871f6edc2d8ab2fa91dccf
parent188e9c541f698109a76cf334b925c77b6007aba1
numa: __node_distance() should return u8

SLIT values are byte-sized and some of them (0-9 and 255) have
special meaning. Adjust __node_distance() to reflect this and
modify scrub_heap_pages() and do_sysctl() to deal with
__node_distance() returning an invalid SLIT entry.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/arch/x86/srat.c
xen/common/page_alloc.c
xen/common/sysctl.c
xen/include/asm-x86/numa.h
xen/include/xen/numa.h